package com.hnucm.ktstudy.base


/**
 * 枚举类
 */

fun main(){
    Operators.PLUS
}

fun method(operators: Operators){
    when(operators){
        
        Operators.PLUS -> TODO()
        Operators.SUM -> TODO()
        Operators.MULTI -> TODO()
        Operators.DIV -> TODO()
    }
}

//将需要枚举的内容写在枚举类中 不可以被继承
enum class Operators{
    PLUS,SUM,MULTI,DIV,
}